package com.rc.web.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.rc.pojo.dto.order.OrderFormDTO;
import com.rc.pojo.dto.order.OrderQuery;
import com.rc.pojo.po.Order;
import com.rc.pojo.vo.order.OrderPayListVO;
import com.rc.pojo.vo.order.OrderVO;
import com.rc.pojo.vo.order.PageOrderVO;

import java.util.List;

/**
 *  服务层。
 *
 * @author sym
 * @since 2024-06-05
 */
public interface OrderService extends IService<Order> {
    Order createOrder(OrderFormDTO dto);

    List<OrderVO> getConOrderList();

    void payOrder(Long orderId,Long addressId);

    Page<PageOrderVO> getPage(OrderQuery dto);

    int getItemTodaySold(Long itemId, Integer type);

    OrderVO getOneById(Long id);

    List<OrderPayListVO> getPayList();

    void cancelOder(Long orderId);

    void verifyOrder(Long orderId);
}
